function [Posterior] = post(X, mu1, mu2, sigma1, sigma2, prior1, prior2)

Y_class = classpdf(X, mu1, mu2, sigma1, sigma2);

Evidence = evidence(Y_class, prior1, prior2);

Posterior(1,:) = Y_class(1,:).*prior1./Evidence;
Posterior(2,:) = Y_class(2,:).*prior2./Evidence;
